xen-unstable/blkif: Add trim operation interface
authorKeir Fraser <keir@xen.org>
Tue, 18 Jan 2011 10:28:22 +0000 (10:28 +0000)
committerKeir Fraser <keir@xen.org>
Tue, 18 Jan 2011 10:28:22 +0000 (10:28 +0000)
commitdd37a134f63af7b0cc1bfb8aed5684184dd9d8cd
tree652403a079d3bce68da215d63012cf004e95a4d5
parent9fd6c06946e2d3782199547771f54d562cd0f85a
xen-unstable/blkif: Add trim operation interface

Trim operation is a request for the underlying block device to mark
extents to be erased. Add the operation code and ring data structure
to the public header file.

Trim operations are passed with sector_number as the sector index to
begin trim operations at and nr_sectors as the number of sectors to
be trimmed. The specified sectors should be trimmed if the underlying
block device supports trim operations, or a BLKIF_RSP_EOPNOTSUPP
should be returned. More information about trim operations at;
http://t13.org/Documents/UploadedDocuments/docs2008/
    e07154r6-Data_Set_Management_Proposal_for_ATA-ACS2.doc

Signed-off-by: Owen Smith <owen.smith@citrix.com>
xen/include/public/io/blkif.h